PCA Index Dashboard Examples

PCA Index Dashboard Examples#

This script was last run at 2024-06-14 10:21:11.965633+00:00 (UTC)
In US/Central Time, this is 2024-06-14 05:21:11.965633-05:00
import matplotlib.pyplot as plt
import pandas as pd
import numpy as np

# Generating a random time series data
dates = pd.date_range(start="2021-01-01", end="2021-12-31", freq='D')
data = np.random.randn(len(dates)).cumsum()

# Creating the plot
plt.figure(figsize=(10, 6))
plt.plot(dates, data, label='Random Time Series', color='blue')
plt.title('Random Time Series Plot')
plt.xlabel('Date')
plt.ylabel('Value')
plt.legend()
plt.grid(True)
plt.xticks(rotation=45)
plt.tight_layout()

# Display the plot
plt.show()
print('We are just generating a random time serie here.')
../../_images/3eb637d11e704848e4087da0722a9ebd48ce58c3aa11db5775164da7e57225cf.png
We are just generating a random time serie here.
../../_images/f44e7562fa19fe43f02efd7578deffc4c0cd5106a0e209e3c1aa8b7498f986dd.png
../../_images/b2eef8059175d8476c9471a851d9eae165200eeb9329895622259e02e3f393c5.png